/*
 *  contourpixel.cpp
 *  bgsubtraction
 *
 *  Created by a1gucis on 5/1/09.
 *  Copyright 2009 __MyCompanyName__. All rights reserved.
 *
 */

#include "contourpixel.h"

ContourPixel::ContourPixel(int row, int col, ID *neighbourID) {
	this->row = row;
	this->col = col;
	this->neighbourID = neighbourID;
}

ContourPixel::ContourPixel(int row, int col) {
	this->row = row;
	this->col = col;
}

ContourPixel::~ContourPixel() {
	delete neighbourID;
}

int ContourPixel::getRow() {
	return this->row;
}

int ContourPixel::getCol() {
	return this->col;
}

ID* ContourPixel::getNeighbourID() {
	return this->neighbourID;
}

void ContourPixel::setNeighbourID(ID *id) {
	delete this->neighbourID;
	this->neighbourID = new ID(id->getR(), id->getG(), id->getB());
}
